package cn.adkii.springframework.context;

import cn.adkii.springframework.context.event.ApplicationEvent;

/**
 * @author malingdi
 * @description 事件发布者, 整个事件的发布接口，所有的事件都需要从这个接口发布出去。
 * @date 2023/11/28 15:55
 */
public interface ApplicationEventPublisher {

    /**
     * Notify all listeners registered with this application of an application event.
     * Events may be framework events(such as RequestHandledEvent)
     * or application-specific events.
     * @param event the event to pulish
     */
    void publishEvent(ApplicationEvent event);
}
